﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RATSharpW7.ViewModel.CalendarViewModel
{
    /// <summary>
    /// Calendar Data Provider for object Calendar
    /// </summary>
    public class CalendarObjectDataFactory : ICalendarDataProvider
    {

        int userId;
        int objectId;

        public CalendarObjectDataFactory(int userId, int objectId)
        {
            this.userId = userId;
            this.objectId = objectId;
        }


        public AbstractCalendarViewModel getCalendarModel()
        {
            return new CalendarObjectViewModel(objectId);
        }

        public AbstractDayViewModel getDayModel(DateTime selectedDate)
        {
            return new DayViewObjectModel(selectedDate, objectId, userId);
        }
    }
}
